package com.onpositive.html.model;

public class HyperLinkEntry extends AbstractTableEntry implements IParametrizedTableEntry<HyperLink> {

	private HyperLink value;
	
	public HyperLinkEntry(HyperLink hl) {
		this.value = hl;
	}

	@Override
	public String getStringValue() {
		return value.toString();
	}

	@Override
	public void setObject(Object object) {
		if(object instanceof HyperLink){
			this.value = (HyperLink) object;
		}
		else{
			this.value = null;
		}
	}

	@Override
	public HyperLink getObject() {
		return value;
	}

	@Override
	public Class<HyperLink> getObjectClass() {
		return HyperLink.class;
	}

}
